All Questions
51 questions
0votes
1answer
114views
Button click not working in seleniumheadless mode as expected
I am using selenium script to test login flow. After entering username, I need to click next button and it should redirect me to Identity provider page. If I don't run my selenium script in headless ...
-1votes
1answer
180views
How to clear the text fields using the javascriptExecutor in selenium?
The following code isused to clear the text box value or we can use this to clear the text box in selenium if the clear() function is not working use below code ` if (maturityDate.compareTo(...
0votes
0answers
199views
While closing the browser tab in Selenium run, Pop-up alert not displayed, but pop-up is displayed when manually closing the browser tab
Our application has a popup alert built-in if user closes the browser tab. It works when I manually close the Chrome browser tab, but when I use Selenium methods like driver.close() or quit(), or Keys(...
0votes
2answers
359views
WebDriver throws Exception: TypeError: JSON.stringify is not a function
I am working on selenium automation using java. Selenium version used : 4.10.0 Though I see two tabs ( 1. parent tab main page and 2. is the child tab) but when I switch to child through below code I ...
0votes
1answer
48views
Select element by id from the dom, using Java., the element tag is not visible on the inspect
I tried the below code but the button wasn't selected. WebElement rvbtn = driver.findElement(By.name("rv")); rvbtn.click();
1vote
0answers
102views
Selenium java how to get JS file sizes from Network tab after login
I am fairly new to Selenium so please bear with me. I have a requirement to check two JS file sizes upon login of an application (Open chrome browser -> Open Url -> Click in username and input ...
0votes
1answer
1kviews
How do I get response of Javascript using JavascriptExecutor in Java selenium or how to extract <script> tag text?
Here I want to get extract the value from the tag. But through the selenium, I am not able to find script tag and fetch data for the same. But through Javascript, I am able to access that script tag ...
0votes
0answers
500views
Set KEY and Value in Local Storage for the URL loading in Edge Browser
I am trying to set KEY and Value in Local Storage for url loading in Edge Browser. I have tried in 2 ways but still not able to set KEY and Value, i am getting Null Pointer Exception. I am trying in ...
0votes
1answer
236views
my after method does not work everything seems normal to me but it is skipping. Any suggestion?
my aftermethod refuse to run I dont what i am doing wrong. i tried couple codes but i am still getiing java.lang.NullPointerException any suggestion ? System.setProperty("webdriver.chrome....
0votes
0answers
202views
Can not get file path from resource folder - Java (exception) [duplicate]
I try to automate a page that I have. In the page I need to upload a PDF file. The problem is that I want selenium via java will get the file from the resource of the project and not hard coded. (...
0votes
2answers
1kviews
Can not close upload file window in selenium
I have a question that I try to resolve. I have a screen in my webpage, that open a dialog box to upload a file. I managed to select the file, However the dialog box not closed, and stayed open. So I ...
0votes
1answer
1kviews
Test multiple Chrome browser sessions with Selenium + Java
I am in a situation where I need to test a website in Chrome where I have two different users logged in at once and then I want to switch between each instance and test different functions Is there a ...
1vote
0answers
977views
Selenium can't fire onchange on Select Dropdown
It's the first time I come across an issue with Select that Selnium webdriver couldn't fire the onchange on it. The code is as usual: Select country = new Select(driver().findElement(By.id("...
1vote
1answer
479views
how to get an image's tooltip, which will only appear when we mouseover it. In Selenium
I am learning Selenium, and i want to get the tooltip of the image printed on the selenium console,...the tooltip will only appear when we mouse over the image.. I tried to get the xpath and used ...
0votes
3answers
1kviews
Javascript execution for typing in text field is not behaving as sendKeys
I'm running my tests on Linux machine and there with following code, it does not type text correctly - visibleElement.clear(); visibleElement.sendKeys("I am running on linux machine"); In UI, ...